package KernelCmConstDefs;


/**
 * Generated from IDL struct "CorrelatedNotification".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class CorrelatedNotificationHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(KernelCmConstDefs.CorrelatedNotificationHelper.id(),"CorrelatedNotification",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("source", KernelCmConstDefs.DNHelper.type(), null),new org.omg.CORBA.StructMember("notif_id_set", KernelCmConstDefs.NotifIdSetHelper.type(), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final KernelCmConstDefs.CorrelatedNotification s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static KernelCmConstDefs.CorrelatedNotification extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:KernelCmConstDefs/CorrelatedNotification:1.0";
	}
	public static KernelCmConstDefs.CorrelatedNotification read (final org.omg.CORBA.portable.InputStream in)
	{
		KernelCmConstDefs.CorrelatedNotification result = new KernelCmConstDefs.CorrelatedNotification();
		result.source=in.read_string();
		result.notif_id_set = KernelCmConstDefs.NotifIdSetHelper.read(in);
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final KernelCmConstDefs.CorrelatedNotification s)
	{
		out.write_string(s.source);
		KernelCmConstDefs.NotifIdSetHelper.write(out,s.notif_id_set);
	}
}
